package com.css.zfzx.sjcj.modules.drill.Entity;

import cn.afterturn.easypoi.excel.annotation.Excel;

import javax.persistence.*;
import java.util.Objects;

/**
 * @Description:
 * @Author: Li Helei
 * @CreateDate: 2021/1/18 10:33
 * @Version: 1.0
 **/
@Entity
@Table(name = "qh_y05", schema = "base", catalog = "")
public class QhY05Entity {
    private String id;
    @Excel(name = "起始标贯深度(m)",orderNum = "1")
    private Double standardStartDepth;
    @Excel(name = "结束标贯深度(m)",orderNum = "2")
    private Double standardEndDepth;
    @Excel(name = "标贯值",orderNum = "3")
    private Double standardNumber;
    private String isValid;
    private String drillId;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "standard_start_depth")
    public Double getStandardStartDepth() {
        return standardStartDepth;
    }

    public void setStandardStartDepth(Double standardStartDepth) {
        this.standardStartDepth = standardStartDepth;
    }

    @Basic
    @Column(name = "standard_end_depth")
    public Double getStandardEndDepth() {
        return standardEndDepth;
    }

    public void setStandardEndDepth(Double standardEndDepth) {
        this.standardEndDepth = standardEndDepth;
    }

    @Basic
    @Column(name = "standard_number")
    public Double getStandardNumber() {
        return standardNumber;
    }

    public void setStandardNumber(Double standardNumber) {
        this.standardNumber = standardNumber;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "drill_id")
    public String getDrillId() {
        return drillId;
    }

    public void setDrillId(String drillId) {
        this.drillId = drillId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QhY05Entity that = (QhY05Entity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(standardStartDepth, that.standardStartDepth) &&
                Objects.equals(standardEndDepth, that.standardEndDepth) &&
                Objects.equals(standardNumber, that.standardNumber) &&
                Objects.equals(isValid, that.isValid) &&
                Objects.equals(drillId, that.drillId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, standardStartDepth, standardEndDepth, standardNumber, isValid, drillId);
    }
}
